<!-- 需要自己进行粘贴复制coze上创建的SDK，ai生成的会有错误 -->
<script src="https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.19/libs/cn/index.js"></script>
<script>
  new CozeWebSDK.WebChatClient({
    config: {
      bot_id: '7568780654415691810',
    },
    componentProps: {
      title: 'Coze',
    },
    auth: {
      type: 'token',
      token: '{{ coze_token }}',
      onRefreshToken: function () {
        return '{{ coze_token }}'
      }
    },
       // 配置用户信息
    userInfo:{
      id: '{{ user.id }}',
      url: 'https://lf-coze-web-cdn.coze.cn/obj/coze-web-cn/obric/coze/favicon.1970.png',
      nickname: '{{ user.username }}',
      },

      ui: {
    // 悬浮球配置
    asstBtn: {
      isNeed: true // 展示悬浮球
    },
       
   conversations: {
    isNeed: true    //会话列表
  },
    

  },
 



  });
</script>